LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 11-11-2009, 06:53 AM   #1
spatieman
Member
 
Registered: Jan 2004
Location: netherlands, europe, in a crapy house. xD
Distribution: openBSD
Posts: 52

Rep: Reputation: 21
[SOLVED?] SMB weard behaveure, resolving IP instead DNS name..


ok.
situation is like this.

My nat is openBSD ,with maradns as DNS server.
works exelent.

my fileserver is openBSD
smb.conf is like below.


#======= Global Settings =========
[global]
workgroup = addicts
netbios name = fileserver
server string = Samba openBSD file Server %v
browseable = yes
log level = 3
log file = /var/log/smbd.%m
max log size = 4096
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=8192 SO_SNDBUF=8192 SO_KEEPALIVE
name resolve order = hosts
getwd cache = yes
read raw = yes
write raw = yes
deadtime = 30
keepalive = 60
#share modes = yes
max xmit = 65535
load printers = no
security = Share
hosts allow = 192.168.0. 127.
printable = no
dns proxy = no

# Backend to store user information in. New installations should
# use either tdbsam or ldapsam. smbpasswd is available for backwards
# compatibility. tdbsam requires no further configuration.
passdb backend = tdbsam

#======== Share Definitions ===========

[%m home]
browseable = yes
comment = PC Directories %m
path = /home/%m
public = no
writable = yes

[muziek RO]
path = /mnt/hd1/smb/muziek
browseable = yes
comment = Muziek
public = yes
writable = no

/etc and much more shares

where %m is the machine name what is in my network. (one of many)
for every machine i have created a account, and also made a password for samba.

added DNS for name resolving to the IP in the lan.
works great.

now comes the problem.
when i browse to the fileservers home directory ,made for a specific machine (like desktop)
i should see the common READ ONLY shares, what i do.
but i should also see a share named desktop.
there comes now my problem.
most of the time i only see its IP adress.
i double checked, all is ok, other machines i do see its DNS name.
and can access it.

can someone tell me what is going wrong?
when i ping from the fileserver to its name, i see its correct IP.
so the DNS server is correct working in my lan.

when i see the IP , i CANT access its directory, i have several users who i granted access to it, they mostly complain that they only also see the IP instead the name.

help ?
or a advice..

thxns

Last edited by spatieman; 11-15-2009 at 08:14 AM.
 
Old 11-12-2009, 01:06 AM   #2
paulsm4
Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,858
Blog Entries: 1

Rep: Reputation: Disabled
You actually have two different questions here:

1. Why isn't your organization's DNS resolving by name?
... and ...
2. Why isn't your Samba granting correct permissions to those who access by IP address?

I'd tackle the first question, first (and I'll betcha the answer is probably "Active Directory" ;-))

"Dig" is your tool.

Here's a good link:

http://www.docstoc.com/docs/2556365/...ig-to-Test-DNS
 
Old 11-12-2009, 11:37 AM   #3
spatieman
Member
 
Registered: Jan 2004
Location: netherlands, europe, in a crapy house. xD
Distribution: openBSD
Posts: 52

Original Poster
Rep: Reputation: 21
1: it is, i can ping on name ,and see its IP..

2: that i is my question, it is seeing its correct IP ,but it should resolve in the computers name..
so i dont now if something is wrong on my SMB file..

and no, i dont use active directory, i shouldt now why..
 
Old 11-15-2009, 08:13 AM   #4
spatieman
Member
 
Registered: Jan 2004
Location: netherlands, europe, in a crapy house. xD
Distribution: openBSD
Posts: 52

Original Poster
Rep: Reputation: 21
ok, i changed security to user.
now, it seems to be fixed........
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DNS Resolving kaitech76 Linux - Networking 14 04-08-2009 02:59 PM
DNS Resolving sarukie Linux - Networking 1 11-22-2004 10:41 AM
/etc/hosts resolving before DNS resolving ? markraem Linux - Networking 4 11-02-2003 04:54 AM
DNS not resolving ElementNine Linux - Networking 5 09-30-2003 06:42 AM
DNS isn't resolving. member57 Linux - Networking 3 07-15-2003 12:50 PM


All times are GMT -5. The time now is 06:02 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration